package service.impl;

import com.wsk.api.service.DemoService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by wsk1103 on 2017/12/4.
 */
@Service
public class DemoServiceImpl implements DemoService {
    public List<String> getPermissions(long id) {
        List<String> list = new ArrayList<String>();
        list.add(String.format("Permission_%d", id - 1));
        list.add(String.format("Permission_%d", id ));
        list.add(String.format("Permission_%d", id + 1));
        return list;
    }
}
